package com.devunion.bogdan.model.event;

import com.devunion.bogdan.model.project.Page;
import com.devunion.bogdan.model.project.Annotation;

/**
 * @author Viktar Liaskovich
 */
public class AnnotationEvent extends BaseEvent<Page> {
    private Annotation annotation;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public AnnotationEvent(Page source, Annotation annotation) {
        super(source);

        this.annotation = annotation;
    }

    public Annotation getAnnotation() {
        return annotation;
    }
}
